# PyOpenSG is (C) Copyright 2005-2009 by Allen Bierbaum
#
# This file is part of PyOpenSG.
#
# PyOpenSG is free software; you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the Free
# Software Foundation; either version 2 of the License, or (at your option)
# any later version.
#
# PyOpenSG is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for
# more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

import os,sys
#from environment import gccxml
from pyplusplus import module_builder
cp = module_builder.call_policies


mb = module_builder.module_builder_t(
        files=['test.h'],
        include_paths=["/home/allenb/Source/boost/installed/include/boost-1_33_1",] )

ns = mb.global_ns

ns["B"].exclude()
#ns.decl("factory").call_policies = cp.return_value_policy(cp.manage_new_object)

#I can print declarations to see what is going on
#mb.print_declarations()

#Now it is the time to give a name to our module
mb.build_code_creator( module_name='test' )

#And finally we can write code to the disk
mb.write_module( os.path.join( os.path.abspath('.'), 'test.py.cpp' ) )
